package music;

public class MusicBoxFactory {
	public static MusicBox getlnstance(String className){
		MusicBox a = null;
		if("piano".equals(className)){
			a = new PianoBox();
		}
		if("violin".equals(className)){
			a = new ViolinBox();
		}
		return a;
	}
}
